package com.zsp.comic.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author gan
 * @create 2021-01-16 19:03
 */
public class Friend implements Serializable {
    private Integer id;
    private String name;
    private String imageUrl;
    private String url;
    private Integer sort;
    private Integer show;
    private Date joinTime;

    @Override
    public String toString() {
        return "Friend{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                ", show=" + show +
                ", joinTime=" + joinTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getShow() {
        return show;
    }

    public void setShow(Integer show) {
        this.show = show;
    }

    public String getJoinTime() {
        return new SimpleDateFormat("yyyy-MM-dd").format(joinTime);
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }
}
